home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
database
/
flags22.exe
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-17
|
12KB
|
273 lines
ECHO OFF
CLS
ECHO ╔══ ╔══ ╔══╗╔══╗ ╔══ ═╦═
ECHO ╠═ ╠═ ╠═╦╝╠═╦╝ ╠═ ║
ECHO ║ ╚══ ║ ║ ║ ║ ╚══ ║
ECHO ═════════════════════════════════════════════════════════════════════
ECHO Installation - FLatfile Application Generator System Program
ECHO ═════════════════════════════════════════════════════════════════════
IF %1x==x GOTO ERR1
IF %1x==x GOTO NODSK
IF %1==a SET DSK=A:
IF %1==b SET DSK=B:
IF %1==c SET DSK=C:
IF %1==d SET DSK=D:
IF %1==e SET DSK=E:
IF %1==f SET DSK=F:
IF %1==g SET DSK=G:
IF %1==h SET DSK=H:
IF %1==i SET DSK=I:
IF %1==j SET DSK=J:
IF %1==k SET DSK=K:
IF %1==l SET DSK=L:
IF %1==m SET DSK=M:
IF %1==n SET DSK=N:
IF %1==o SET DSK=O:
IF %1==p SET DSK=P:
IF %1==q SET DSK=Q:
IF %1==r SET DSK=R:
IF %1==s SET DSK=S:
IF %1==t SET DSK=T:
IF %1==u SET DSK=U:
IF %1==v SET DSK=V:
IF %1==w SET DSK=W:
IF %1==x SET DSK=X:
IF %1==y SET DSK=Y:
IF %1==z SET DSK=Z:
IF %1==A SET DSK=A:
IF %1==B SET DSK=B:
IF %1==C SET DSK=C:
IF %1==D SET DSK=D:
IF %1==E SET DSK=E:
IF %1==F SET DSK=F:
IF %1==G SET DSK=G:
IF %1==H SET DSK=H:
IF %1==I SET DSK=I:
IF %1==J SET DSK=J:
IF %1==K SET DSK=K:
IF %1==L SET DSK=L:
IF %1==M SET DSK=M:
IF %1==N SET DSK=N:
IF %1==O SET DSK=O:
IF %1==P SET DSK=P:
IF %1==Q SET DSK=Q:
IF %1==R SET DSK=R:
IF %1==S SET DSK=S:
IF %1==T SET DSK=T:
IF %1==U SET DSK=U:
IF %1==V SET DSK=V:
IF %1==W SET DSK=W:
IF %1==X SET DSK=X:
IF %1==Y SET DSK=Y:
IF %1==Z SET DSK=Z:
IF %DSK%==ERR GOTO ERR1
:NODSK
SET FLVR=ERR
IF EXIST FLAGSP.ZIP SET FLVR=P
IF EXIST FLAGSX.ZIP SET FLVR=X
IF EXIST FLAGSB.ZIP SET FLVR=B
IF EXIST FLAGS4.ZIP SET FLVR=4
IF EXIST FLAGS3.ZIP SET FLVR=3
IF EXIST FLAGSP.EXE SET FLVR=P
IF EXIST FLAGSX.EXE SET FLVR=X
IF EXIST FLAGSB.EXE SET FLVR=B
IF EXIST FLAGS4.EXE SET FLVR=4
IF EXIST FLAGS3.EXE SET FLVR=3
IF %FLVR%==ERR GOTO ERR2
IF %FLVR%==P SET FLV=Foxpro V2.0
IF %FLVR%==X SET FLV=Executable
IF %FLVR%==4 SET FLV=Dbase IV 1.1
IF %FLVR%==3 SET FLV=Dbase III+ 1.1
IF %FLVR%==B SET FLV=FoxBase V2.1
SET STRT=ERR
IF %FLVR%==P SET STRT=Foxpro
IF %FLVR%==X SET STRT=Flags
IF %FLVR%==4 SET STRT=Dbase
IF %FLVR%==3 SET STRT=Dbase
IF %FLVR%==B SET STRT=Foxplus
SET ZPF=ZIP
IF EXIST FLAGS%FLVR%.EXE SET ZPF=EXE
IF %ZPF%==EXE GOTO DST
ECHO Downloaded Installation Program
GOTO CNT4
:DST
ECHO Distributed Installation Program
:CNT4
ECHO for %FLV%
ECHO NOTE! Installed Program Requires Approximately 400 KB
ECHO (executable more like a Meg)
IF %DSK%X==X GOTO NODSK1
ECHO Disk Space! Program will be installed on Drive %DSK%
GOTO CNT1
:NODSK1
ECHO Disk Space! Program will be installed on your default Drive
:CNT1
ECHO You're Installing the %FLV% version.
SET UPD=N
IF EXIST %DSK%\FLAGS\MAIN\MASTER.DBF SET UPD=Y
IF %UPD%==N GOTO NEW
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ FLAGS HAS BEEN INSTALLED...THIS WILL OVERWRITE ║
ECHO ║ THE SAMPLE SYSTEMS....THINK ABOUT IT!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
:NEW
ECHO.
ECHO To Quit Now, hold down [Ctrl] Key and Press [C]
PAUSE
ECHO.
ECHO Please wait a few moments.....
ECHO.
MD %DSK%\FLAGS
IF %ZPF%==EXE GOTO CNT5
COPY *.ZIP %DSK%\FLAGS >Nul
IF NOT EXIST %DSK%\FLAGS\FLAGS%FLVR%.ZIP GOTO ERR3
GOTO CNT6
:CNT5
COPY *.EXE %DSK%\FLAGS >Nul
IF NOT EXIST %DSK%\FLAGS\FLAGS%FLVR%.EXE GOTO ERR3
:CNT6
COPY *.BAT %DSK%\FLAGS >Nul
COPY README.* %DSK%\FLAGS >Nul
%DSK%
CD \FLAGS
IF %UPD%==N GOTO Cnt2
COPY MAIN\MASTER.DBF MAIN\MASTER.FRT
COPY MAIN\FLAGSTST.DBF MAIN\FLAGSTST.FRT
:Cnt2
IF %ZPF%==ZIP GOTO ZIP
FLAGS%FLVR% -SFERRET -O -D
GOTO CNT3
:ZIP
PKUNZIP FLAGS%FLVR% -SFERRET -O -D
:CNT3
IF NOT EXIST %DSK%\FLAGS\MAIN\MASTER.DBF GOTO ERR4
COPY README.* MAIN >Nul
COPY INSTALL.BAT MAIN >Nul
DEL README.*
DEL INSTALL.BAT
DEL *.ZIP
IF %FLVR%==X GOTO SKIP
DEL *.EXE
:SKIP
DEL FLAGSX.EXE
GOTO DONE
:ERR1
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ Make sure you're on the drive and directory where ║
ECHO ║ you've got the downloaded files. When you're ready ║
ECHO ║ to install, you Enter: ║
ECHO ║ ║
ECHO ║ Install (1) ║
ECHO ║ ║
ECHO ║ Where (1) is the letter for the disk you want Flags ║
ECHO ║ to be located in (A through Z) ║
ECHO ║ ║
ECHO ║ Example: For those of you who want Flags to be located ║
ECHO ║ forever and ever on your C drive, type in: ║
ECHO ║ Install C ║
ECHO ║ ║
ECHO ║ Now, Try Again!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:ERR2
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! I'm not finding the right files! ║
ECHO ║ Either the FLAGS Files or the INSTALL files have been ║
ECHO ║ mucked with...Check again! ║
ECHO ║ (It could also be that you're not running this from the ║
ECHO ║ directory that contains the downloaded/distributed files) ║
ECHO ║ ║
ECHO ║ You need: ║
ECHO ║ INSTALL.BAT (This program) ║
ECHO ║ README.1ST ║
ECHO ║ FLAGS3.ZIP (For Dbase III+ 1.1) ║
ECHO ║ FLAGS4.ZIP (For Dbase IV+ 1.1) ║
ECHO ║ FLAGSP.ZIP (For FoxPro) ║
ECHO ║ FLAGSB.ZIP (For FoxBase) ║
ECHO ║ FLAGSX.ZIP (For Executable) ║
ECHO ║ (The ZIP files may be replaced by EXE files in the case of ║
ECHO ║ distributed systems) ║
ECHO ║ Check your files and Try Again!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:ERR3
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ Are you sure you've got a %DSK% drive? I don't think you do! ║
ECHO ║ (Or you don't have much space free) ║
ECHO ║ Check again! When you're ready to try again, Enter: ║
ECHO ║ ║
ECHO ║ Install (1) ║
ECHO ║ ║
ECHO ║ Where (1) is the letter for the disk you want Flags ║
ECHO ║ to be located in (A through Z) ║
ECHO ║ ║
ECHO ║ Example: For those of you who want Flags to be located ║
ECHO ║ forever and ever on your C drive, type in: ║
ECHO ║ Install C ║
ECHO ║ ║
ECHO ║ Now, Try Again!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:ERR4
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ In order for this to work you need to make a path to your PKZip ║
ECHO ║ program. And it has to be at least Version 1.1...Check it out! ║
ECHO ║ When you're ready to try again, Enter: ║
ECHO ║ ║
ECHO ║ Install (1) ║
ECHO ║ ║
ECHO ║ Where (1) is the letter for the disk you want Flags ║
ECHO ║ to be located in (A through Z) ║
ECHO ║ ║
ECHO ║ Example: For those of you who want Flags to be located ║
ECHO ║ forever and ever on your C drive, type in: ║
ECHO ║ Install C ║
ECHO ║ ║
ECHO ║ Now, Try Again!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:DONE
cls
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ You've Installed the %FLV% Version of Flags (you dog). ║
IF %FLVR%==X GOTO Exe
ECHO ║ To Begin the Flags system, type in "%STRT% Flags" from the \FLAGS ║
GOTO Anyway
:Exe
ECHO ║ To Begin the Flags system, type in "Flags" from the \FLAGS ║
:anyway
ECHO ║ Directory on your %DSK% Drive. Remember to put a Path to Your ║
ECHO ║ xBase Product or you won't get very far (as in nowhere). ║
ECHO ║ ║
ECHO ║ Remember, Flags works under: ║
ECHO ║ ║
ECHO ║ Dbase III+ V1.1, Dbase IV V1.1, FoxBase, and FoxPro V2.0 and Exe ║
ECHO ║ See the files \FLAGS\MAIN\README.DOC and README.1st for some ║
ECHO ║ simple documentation. The file \FLAGS\FLAGS.DOC contains the rest ║
ECHO ║ ║
ECHO ║ ╔═ FLAGS is from:════════════╗ ║
ECHO ║ ║ dbF Software Productions ║ ║
ECHO ║ ║ PO Box 37194 ║ ║
ECHO ║ ║ Cleveland, Ohio 44137-0194 ║ ║
ECHO ║ ║ (216)491-4581 ║ ║
ECHO ║ ╚════════════════════════════╝ ║
ECHO ║ Dbase III+ and IV belongs to Ashton-Tate ║
ECHO ║ FoxPro and FoxBase belongs to Fox Software ║
ECHO ║ PkZip belongs to PkWare, Inc. ║
ECHO ║ Toto belongs to Dorothy... ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
:BYE
SET DSK=
SET FLVR=
SET FLV=
SET STRT=
SET ZPF=
SET UPD=